<template>
<h1>事件绑定指令</h1>
<button @click="click">按钮1</button>
<button v-on:click="click">按钮2</button>
</template>
<script setup>
const click=()=>{
  console.log('戳了戳杨硕')
}
</script>


<style scoped>

</style>